package com.lei.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/originalHashUser")
//@Api(tags = "原生redisTemplate Hash操作用户")
public class TableOrderList {

//	 @Override
//		public boolean save(TableOrderList entity) {
//			//保存到数据库
//			boolean isSuccess = super.save(entity);
//			if(isSuccess) {
//				//从数据库查询出来
//				TableOrderList returNentity = super.getById(entity.getId());
//				if(redisTemplate.hasKey(USER_CACHE_LIST_KEY)) {
////					map.get(key);
//					//添加到缓存
//					redisTemplate.opsForList().leftPush(USER_CACHE_LIST_KEY, returNentity);
//				}
//			}
//			return isSuccess;
//		}
}
